import requestMeeting from '@/plugins/axios'

export const fetchValidExtractCode = async (meetingMoid: string, code: string) =>
	requestMeeting<number>({
		url: `/meetings/${meetingMoid}/extract_code/validation`,
		method: 'get',
		params: {
			extract_code: code,
		},
	}).then((res) => (res.success && res.data ? res.data : undefined))
